#include "VertexBuffer.h"

using namespace Nezha;

VertexBuffer::VertexBuffer(u32 vertexStride, u32 numVertex, HardwareBuffer::Usage usage, bool createShadowBuffer)
	:HardwareBuffer(usage, createShadowBuffer)
	,mNumVertex(numVertex)
	,mVertexStride(vertexStride)
{
	mSizeInBytes = mNumVertex * mVertexStride;

	if(createShadowBuffer)
	{
		mShadowBuffer.resize(mSizeInBytes);
	}
}

VertexBuffer::~VertexBuffer()
{

}